package sk.stuba.fiit.ltasys.web.mvc.model.dao;

import java.math.BigInteger;

import sk.stuba.fiit.ltasys.web.mvc.model.entity.CertificateEntity;
import sk.stuba.fiit.ltasys.web.mvc.model.entity.CrlEntity;

public interface CrlAndCertDao {

	public void saveCertificate(CertificateEntity certificate);
	public CertificateEntity getCertificateByIssuerAndSerialNumber(String issuer,BigInteger serialNum);
	public void deleteCertificate(CertificateEntity certificate);
	
	public void saveCrl(CrlEntity crl);
	public CrlEntity getActualCrl(String issuer,BigInteger serialNum);
	public void deleteCrl(CrlEntity crl);
	public CertificateEntity getCertificateBySubject(String subject);
	
}
